﻿using System.Configuration;

namespace UFIDA.U9.WSS.ProxyService.AccessProxy.Configuration
{
    public sealed class ProxySection : ConfigurationElement
    {
        private ConfigurationPropertyCollection _properties;

        [ConfigurationProperty("proxyType", DefaultValue = "", Options = ConfigurationPropertyOptions.None)]
        public string ProxyType
        {
            get { return this["proxyType"] != null ? this["proxyType"] as string : ""; }
        }

        protected override ConfigurationPropertyCollection Properties
        {
            get
            {
                if (_properties != null) return _properties;
                _properties = new ConfigurationPropertyCollection();
                _properties.Add(new ConfigurationProperty("proxyType", typeof (string), null, null, null,
                    ConfigurationPropertyOptions.None));
                return _properties;
            }
        }
    }
}